package entity;

import javax.persistence.AttributeOverride;
import javax.persistence.AttributeOverrides;
import javax.persistence.Column;
import javax.persistence.EmbeddedId;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * Trans entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "trans", schema = "public")
public class Trans_1 implements java.io.Serializable {

	// Fields

	private TransId id;

	// Constructors

	/** default constructor */
	public Trans_1() {
	}

	/** full constructor */
	public Trans_1(TransId id) {
		this.id = id;
	}

	// Property accessors
	@EmbeddedId
	@AttributeOverrides({
			@AttributeOverride(name = "numero", column = @Column(name = "numero")),
			@AttributeOverride(name = "etat", column = @Column(name = "etat")),
			@AttributeOverride(name = "porte", column = @Column(name = "porte")),
			@AttributeOverride(name = "date", column = @Column(name = "date")),
			@AttributeOverride(name = "time", column = @Column(name = "time")) })
	public TransId getId() {
		return this.id;
	}

	public void setId(TransId id) {
		this.id = id;
	}

}